package com.icedevcloud.upms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.icedevcloud.common.core.mybatis.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author XiaoBingBy
 * @since 2023-08-13
 */
@Getter
@Setter
@TableName("sys_role")
@Schema(name = "SysRole", description = "$!{table.comment}")
public class SysRole extends BaseEntity {

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "租户编号")
    private String tenantNo;

    @Schema(description = "角色名")
    private String roleName;

    @Schema(description = "排序号")
    private Integer sort;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态 1-启用 0-禁用")
    private Integer status;

    @Schema(description = "权限ID集合")
    private transient List<Long> permissionIds;
}
